package demo07_xml_annotation.xml;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by ztt on 2017/9/17.
 */
public class MainTest {

    public static void main(String[] args){
        String path="demo07.xml";
        ClassPathXmlApplicationContext applicationContext=new ClassPathXmlApplicationContext(path);
        RoleService roleService=(RoleService)applicationContext.getBean("roleService");
        roleService.get();
    }
}
